﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using VSS_AHT.DataAccess;
using System.Windows.Forms;
namespace VSSAHT.DataAccess
{
    public class Connection : BaseDataAccess, IConnection
    {

        #region IConnection Members

        public bool CheckDatabases()
        {
            bool result = false;
            using (VSSAHTDataContext dataContext = new VSSAHTDataContext(base.ConnectionString))
            {
                if (dataContext.DatabaseExists())
                    result = true;
                
            }
            return result;
        }
        public bool CheckNetwork()
        {
            bool result = false;
            if (SystemInformation.Network)
            {
                result = true;
            }
            return result;
        }

        #endregion

    }
}
